package com.jemmyee.cms.entity;
// default package

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

import com.jemmyee.core.entity.BaseEntity;

/**
 * @Description:商品-商标
 * @author:jemmyee@gmail.com
 * @date:2011-8-27
 * @version:v1.0
 */
@Entity
@Table(name = "cms_product_brand")
public class ProductBrand extends BaseEntity implements java.io.Serializable {

	// Fields

	private String id;
	private Integer categoryId;
	private String name;//商标名称
	private String sn;//商标注册号
	private String img;//商标图案
	private Date addTime;
	private String brief;//商标亮点说明
	private Integer sortOrder;
	private Integer type;//商标类型   1中文  2英文  3 图形 4 组合
	private Short tradeType;//交易方式  1 转让  2许可
	private Double price;//交易价格
	private Date indate;//有效日期
	private String useRang;//使用范围
	private String owner;
	private String ownerTel;
	private String ownerAddress;
	private Short showIndex;//是否显示在首页

	// Constructors

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "uuid")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "category_id", nullable = false)
	public Integer getCategoryId() {
		return this.categoryId;
	}

	public void setCategoryId(Integer categoryId) {
		this.categoryId = categoryId;
	}

	@Column(name = "name", length = 150)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "sn", length = 100)
	public String getSn() {
		return this.sn;
	}

	public void setSn(String sn) {
		this.sn = sn;
	}

	@Column(name = "add_time", length = 0)
	public Date getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Date addTime) {
		this.addTime = addTime;
	}

	@Column(name = "brief", length = 1000)
	public String getBrief() {
		return this.brief;
	}

	public void setBrief(String brief) {
		this.brief = brief;
	}

	@Column(name = "sort_order")
	public Integer getSortOrder() {
		return this.sortOrder;
	}

	public void setSortOrder(Integer sortOrder) {
		this.sortOrder = sortOrder;
	}

	@Column(name = "type")
	public Integer getType() {
		return this.type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	@Column(name = "trade_type")
	public Short getTradeType() {
		return this.tradeType;
	}

	public void setTradeType(Short tradeType) {
		this.tradeType = tradeType;
	}

	@Column(name = "price", precision = 22, scale = 0)
	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "indate", length = 0)
	public Date getIndate() {
		return this.indate;
	}

	public void setIndate(Date indate) {
		this.indate = indate;
	}

	@Column(name = "use_rang", length = 1000)
	public String getUseRang() {
		return this.useRang;
	}

	public void setUseRang(String useRang) {
		this.useRang = useRang;
	}

	@Column(name = "owner", length = 30)
	public String getOwner() {
		return this.owner;
	}

	public void setOwner(String owner) {
		this.owner = owner;
	}

	@Column(name = "owner_tel", length = 20)
	public String getOwnerTel() {
		return this.ownerTel;
	}

	public void setOwnerTel(String ownerTel) {
		this.ownerTel = ownerTel;
	}

	@Column(name = "owner_address", length = 50)
	public String getOwnerAddress() {
		return this.ownerAddress;
	}

	public void setOwnerAddress(String ownerAddress) {
		this.ownerAddress = ownerAddress;
	}
	@Column(name = "img", length = 100)
	public String getImg() {
		return img;
	}

	public void setImg(String img) {
		this.img = img;
	}
	@Column(name = "show_index")
	public Short getShowIndex() {
		return showIndex;
	}

	public void setShowIndex(Short showIndex) {
		this.showIndex = showIndex;
	}

}